package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.ShopServiceListResponse
import com.gexiaobao.pigeon.databinding.ItemShopServiceDetailListBinding

/**
 * @Author      : hxw
 * @Date        : 2024/1/29 17:13
 * @Describe    :
 */
class ServiceListAdapter(data: ArrayList<ShopServiceListResponse.ListBean>) :
    BaseQuickAdapter<ShopServiceListResponse.ListBean, DataBindBaseViewHolder>(R.layout.item_shop_service_detail_list, data) {
    override fun convert(holder: DataBindBaseViewHolder, item: ShopServiceListResponse.ListBean) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemShopServiceDetailListBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动
    }
}